package com.lakeworks.service.impl;

import com.lakeworks.domain.status.PostVerify;
import com.lakeworks.domain.vo.UserWorkload;
import com.lakeworks.mapper.PostVerifyMapper;
import com.lakeworks.service.IPostVerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 核查记录Service业务层处理
 *
 * @author lake
 * @date 2023-02-23
 */
@Service
public class PostVerifyServiceImpl implements IPostVerifyService {
    @Autowired
    private PostVerifyMapper postVerifyMapper;

    /**
     * 查询核查记录
     *
     * @param id 核查记录主键
     * @return 核查记录
     */
    @Override
    public PostVerify selectPostVerifyById(Long id) {
        return postVerifyMapper.selectPostVerifyById(id);
    }

    /**
     * 查询核查记录列表
     *
     * @param postVerify 核查记录
     * @return 核查记录
     */
    @Override
    public List<PostVerify> selectPostVerifyList(PostVerify postVerify) {
        return postVerifyMapper.selectPostVerifyList(postVerify);
    }

    /**
     * 新增核查记录
     *
     * @param postVerify 核查记录
     * @return 结果
     */
    @Override
    public int insertPostVerify(PostVerify postVerify) {
        return postVerifyMapper.insertPostVerify(postVerify);
    }

    /**
     * 修改核查记录
     *
     * @param postVerify 核查记录
     * @return 结果
     */
    @Override
    public int updatePostVerify(PostVerify postVerify) {
        return postVerifyMapper.updatePostVerify(postVerify);
    }

    /**
     * 批量删除核查记录
     *
     * @param ids 需要删除的核查记录主键
     * @return 结果
     */
    @Override
    public int deletePostVerifyByIds(Long[] ids) {
        return postVerifyMapper.deletePostVerifyByIds(ids);
    }

    /**
     * 删除核查记录信息
     *
     * @param id 核查记录主键
     * @return 结果
     */
    @Override
    public int deletePostVerifyById(Long id) {
        return postVerifyMapper.deletePostVerifyById(id);
    }

    @Override
    public List<UserWorkload> selectUserProductCount(UserWorkload userWorkload) {
        return postVerifyMapper.selectUserProductCount(userWorkload);
    }

    @Override
    public List<UserWorkload> selectUserAttchCount(UserWorkload userWorkload) {
        return postVerifyMapper.selectUserAttchCount(userWorkload);
    }
}
